package com.jyb.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.jyb.annotation.Scheduled;
import com.jyb.enumeration.ShanghaiDistrict;
import com.jyb.model.Jxjh;

/**
 * 两个小时更新一次
 * @author wangsanfei
 *
 */
@Scheduled(fixedDelay=1000*60*60*2)
public class JxjhJob implements Job{

	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		Jxjh.dao.updateJxjh(ShanghaiDistrict.WY);
		Jxjh.dao.updateJxjh(ShanghaiDistrict.WE);
		Jxjh.dao.updateJxjh(ShanghaiDistrict.WS);
		Jxjh.dao.updateJxjh(ShanghaiDistrict.WW);
		Jxjh.dao.updateJxjh(ShanghaiDistrict.YY);
		Jxjh.dao.updateJxjh(ShanghaiDistrict.YS);
		
	}

}
